package com.ktwlsoft.archivemanage.payload.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 通过手机号找回密码
 *
 * @author zhuhe on 2019/10/31 11:53
 * @version 1.0
 */
@ApiModel("通过手机号找回密码")
@Getter
@Setter
public class RetrievePasswordByPhoneRequest {

    /**手机号*/
    @ApiModelProperty(value = "手机号")
    @NotNull(message = "手机号不能为空")
    private String phone;

    /**验证码*/
    @ApiModelProperty(value = "验证码")
    private String verificationCode;

    /**新密码*/
    @ApiModelProperty("新密码")
    @NotNull(message = "新密码不能为空")
    private String newPassword;

    /**重复新密码*/
    @ApiModelProperty("重复新密码")
    @NotNull(message = "重复新密码不能为空")
    private String repeatNewPassword;
}